package com.zoffy.wmsbackend.model.vo;

import com.zoffy.wmsbackend.model.entity.Cost;
import lombok.Data;

import java.io.Serializable;
@Data
public class CostVO implements Serializable {
    private Long id;
    private Long warehouseId;
    private Long manufacturerId;
    private String manufacturerName;
    private String warehouseName;
    private String money;

    public static CostVO obj2vo(Cost cost) {
        CostVO costVO = new CostVO();
        costVO.setId(cost.getId());
        costVO.setWarehouseId(cost.getWarehouseId());
        costVO.setManufacturerId(cost.getManufacturerId());
        costVO.setMoney(cost.getMoney());
        return costVO;
    }
}